#include <iostream>
using namespace std;

class Counter
{
private:
    int count;

public:
    Counter() { count = 0; }
    Counter(int c) { count = c; }
    Counter operator+(Counter &c)
    {
        return Counter(count + c.count);
    }

    friend ostream &operator<<(ostream &out, Counter &c)
    {
        out << c.count;
        return out;
    }
};

int main()
{
    Counter c1(5), c2(10), c3;
    c3 = c1 + c2;
    cout << c3 << endl;
    return 0;
}